package info.netinho.util;

public class ComputerInfo {

    public static boolean isWindows() {
        String os = System.getProperty("os.name").toLowerCase();

        return os.indexOf("win") >= 0;
    }

    public static boolean isMac() {
        String os = System.getProperty("os.name").toLowerCase();

        return os.indexOf("mac") >= 0;
    }

    public static boolean isUnix() {
        String os = System.getProperty("os.name").toLowerCase();

        return (os.indexOf("nix") >= 0) || (os.indexOf("nux") >= 0);
    }
}